package middleware

import (
	"github.com/gin-gonic/gin"
)

func SetLoginInfo(ctx *gin.Context) {
	//可以set值
	ctx.Set("user", "xiaoming")
	//放行，执行下去
	ctx.Next()
}
